//
//  XQTabBarItem.h
//  JoinPeso
//
//  Created by 小琦 on 2024/11/18.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, XQTabBarItemType) {
    XQTabBarItemTypeNormal,
    XQTabBarItemTypeImage,
    XQTabBarItemTypeBigImage
};


@interface XQTabBarItem : UIView

@property (nonatomic, strong) UIImageView *imageView;

@property (nonatomic, assign) XQTabBarItemType type;

@property (nonatomic, strong) UILabel *titleLabel;

@property (nonatomic, assign) BOOL selected;

@property (nonatomic, strong) UIColor *normalTextColor;
@property (nonatomic, strong) UIColor *selectedTextColor;

@property (nonatomic, strong) UIImage *normalImage;
@property (nonatomic, strong) UIImage *selectedImage;

@property (nonatomic, copy) void (^singleTapHandle)(XQTabBarItem *item);
@property (nonatomic, copy) void (^doubleTapHandle)(XQTabBarItem *item);

- (instancetype)initWithTitle:(nullable NSString *)title image:(nullable UIImage *)image selectedImage:(nullable UIImage *)selectedImage;

@end

NS_ASSUME_NONNULL_END
